﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TarifasCopiar.aspx.cs" Inherits="NewTierra.Pages.TarifasCopiar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <title></title>

    <link rel="shortcut icon" href="../../images/Icones/favicon.ico" type="image/x-icon" />

    <link href="../../Styles/jquery_notification.css" rel="stylesheet" />

    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>

    <script type="text/javascript" src="../../Scripts/jquery_notification_v.1.js"></script>

    <link href="~/Styles/EstiloGeral.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/TarifasCopiar.css" rel="stylesheet" />
</head>
<body id="body">

    <script language="javascript" type="text/javascript">

        function closeMe() {
            window.close();
        }

        jQuery(function ($) {
            $.datepicker.regional['pt-BR'] = {
                closeText: 'Fechar',
                prevText: '&#x3c;Anterior',
                nextText: 'Pr&oacute;ximo&#x3e;',
                currentText: 'Hoje',
                monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho',
                   'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
                monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun',
                   'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
                dayNames: ['Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sabado'],
                dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                weekHeader: 'Sm',
                dateFormat: 'dd/mm/yy',
                firstDay: 0,
                isRTL: false,
                showMonthAfterYear: false,
                yearSuffix: ''
            };
            $.datepicker.setDefaults($.datepicker.regional['pt-BR']);
        });

        function jScript() {
            $("#from").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                onClose: function (selectedDate) {
                    $("#to").datepicker("option", "minDate", selectedDate);
                }
            });
            $("#to").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                onClose: function (selectedDate) {
                    $("#from").datepicker("option", "maxDate", selectedDate);
                }
            });
        }

        function Confirmdelete() {
            alert("Estas datas(From / To) já existem neste hotel.");
        }

    </script>

    <script type="text/javascript">
        function showAutoCloseMessage(MsgsExc) {
            showNotification({
                message: MsgsExc,
                autoClose: true,
                type: "success",
                duration: 3
            });
        }
    </script>

    <form id="formulario" runat="server">

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <div id="CopiarTarifas">

            <asp:UpdatePanel runat="server" ID="updCopiarTarifas">
                <ContentTemplate>

                    <script type="text/javascript" language="javascript">
                        Sys.Application.add_load(jScript);
                    </script>

                    <fieldset>
                        <legend>Copiar Tarifas</legend>

                        <div class="Filtros">

                            <asp:Label ID="lblEstacaoTXT" runat="server" Width="100px" Text="Estação:"
                                Style="margin-right: 0px; margin-bottom: 0px;" ForeColor="#666666"></asp:Label><br />
                            <asp:DropDownList ID="DropEstacao" runat="server" AutoPostBack="True">
                            </asp:DropDownList>
                            <br />
                            <asp:Label ID="lblPeriodoTXT" runat="server" ForeColor="#666666"
                                Style="margin-right: 0px; margin-bottom: 0px;" Text="Período:" Width="100px"></asp:Label><br />
                            <asp:DropDownList ID="DropPeriodos" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropPeriodos_SelectedIndexChanged">
                            </asp:DropDownList>

                            &nbsp;<asp:Label ID="lblDiaSemTXT" runat="server" ForeColor="#666666"
                                Style="margin-right: 0px; margin-bottom: 0px;" Text="Dia:" Visible="False"></asp:Label>
                            <asp:Label ID="lblDiaSem" runat="server" ForeColor="#666666"
                                Style="margin-right: 0px; margin-bottom: 0px;" Text=""></asp:Label>

                            <br />
                            <br />

                            <asp:CheckBox ID="chkPercent" runat="server" Text="Percent?" OnCheckedChanged="chkPercent_CheckedChanged" AutoPostBack="true" />
                            <asp:TextBox ID="txtPercent" runat="server" MaxLength="3" Visible="false" Width="30px" />
                        </div>

                        <div class="datas">

                            <asp:Label ID="lblDataFromTXT" runat="server" ForeColor="#666666" Text="Data From:"></asp:Label><br />
                            <asp:TextBox ID="from" runat="Server" Width="100px" MaxLength="10"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                ControlToValidate="from" ErrorMessage="*" ValidationGroup="Salvar" CssClass="MsgErro"
                                ToolTip="Campo requerido"></asp:RequiredFieldValidator>
                            <br />

                            <asp:Label ID="lblDataToTXT" runat="server" ForeColor="#666666" Text="Data To:"></asp:Label><br />
                            <asp:TextBox ID="to" runat="Server"
                                MaxLength="10" Width="100px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                ControlToValidate="to" ErrorMessage="*" ValidationGroup="Salvar" CssClass="MsgErro"
                                ToolTip="Campo requerido"></asp:RequiredFieldValidator>
                        </div>

                        <div class="provisorio">
                            <asp:CheckBox runat="server" ID="chkProvisorio" Text="Provisório" />
                        </div>

                        <div class="Botoes">
                            <asp:Button ID="Salvar" runat="server" CssClass="btnGeralAzul" Text="Salvar" OnClick="SalvarTarifas" ValidationGroup="Salvar" />
                            &nbsp;<asp:Button ID="btnFechar" runat="server" CssClass="btnGeralAzul" Text="Fechar" OnClientClick="window.close();" /><br />

                            <asp:Label ID="lblCopiarTarifas" runat="server" Font-Bold="True"
                                ForeColor="#CC0000" Font-Size="Small"></asp:Label>
                        </div>

                    </fieldset>

                </ContentTemplate>
            </asp:UpdatePanel>

        </div>

    </form>
</body>
</html>
